import request from '@/request/index.js';

// 勿删
// export function mobileLogin(params) {
// 	return request.post({
// 		url: '/app-api/user/patient/auth/weixin-mini-mobile-login',
// 		data: params || {},
// 		custom: {
// 			title: "用户登录",
// 			authentication: true
// 		}
// 	});
// }

export function mobileLogin(params) {
	return request.post({
		url: '/app-api/user/patient/auth/mobile-sync',
		data: params || {},
		custom: {
			title: "用户登录",
			authentication: true
		}
	});
}

export function getVerCode(params) {
	return request.post({
		url: '/app-api/user/patient/auth/send-Login-code',
		data: params || {},
		custom: {
			title: "获取验证码",
			authentication: true
		}
	});
}

export function getUserInfo() {
  return request.get({
  	url: '/app-api/member/user/get',
  	custom: {
  		title: "获取用户信息",
  		authentication: true
  	}
  });
}
